package com.spzx.manager.mapper;

import com.spzx.model.dto.product.ProductDto;
import com.spzx.model.entity.product.Product;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Project: spzx-parent
 * Package: com.spzx.manager.mapper
 * Version: 1.0
 * <p>
 * Created by  wangjiaxin  on 2024/3/5 11:11
 */
@Mapper
public interface ProductMapper {
    //条件分页查询
    List<Product> findByPage(ProductDto productDto);

    //保存
    void save(Product product);

    //根据id查询
    Product selectById(Long id);

    //修改
    void updateById(Product product);

    //删除
    void deleteById(Long id);
}
